<html lang="zh">
<head>
    <meta charset="UTF-8"/>
    <title>blg.controller-OrderController</title>
    <style>

        :root {
            --monospace: "Lucida Console", Consolas, "Courier", monospace;
        }

        #markdown {
            font-family: "Open Sans", "Clear Sans", "Helvetica Neue", Helvetica, Arial, 'Segoe UI Emoji', sans-serif;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Header
        -------------------- */

        #markdown h1, #markdown h2, #markdown h3 {
            cursor: default;
        }

        #markdown h1 {
            margin: 20px 0;
            text-align: center;
        }

        #markdown h2 {
            margin: 16px 0;
            padding-bottom: 8px;
            border-bottom: 1px solid #ddd;
        }

        #markdown h3 {
            position: relative;
            margin: 10px 0;
        }


        #markdown h4 {
            margin: 10px 0;
        }

        /* Text Formating
        -------------------- */

        #markdown p {
            margin: 12px 0;
        }

        #markdown code {
            margin: 0 2px;
            padding: 3px 5px;
            border-radius: 2px;
            color: rgb(236, 90, 22);
            background-color: #eee;
            font-family: var(--monospace);
        }

        /* Horizontal Rule
        -------------------- */

        #markdown hr {
            height: 2px;
            margin: 16px 0;
            border: none;
            background-color: #ccc;
        }

        /* Cites
        -------------------- */

        #markdown blockquote {
            border-left: 4px solid #0eaeec;
            padding: 10px 15px;
            color: #666;
            background-color: #dbf3fd;
        }

        /* Table
        -------------------- */

        #markdown table {
            border-spacing: 0;
            border-collapse: collapse;
        }

        #markdown table th, #markdown table td {
            padding: 6px 12px;
            border: 1px solid #dfe2e5;
        }

        #markdown table tr {
            background-color: #fff;
        }

        #markdown table thead tr, #markdown table tbody tr:nth-child(even) {
            background-color: #f8f8f8;
        }

        /* Code Block
        -------------------- */

        #markdown pre code {
            display: block;
            padding: 16px 20px;
            border: 1px solid #ddd;
            border-radius: 4px;
            background-color: #f8f8f8;
            color: #525252;
            font-size: 14px;
            line-height: 22px;
            white-space: pre;
            overflow-x: auto;
            font-family: var(--monospace);
        }

        /* List
        -------------------- */

        #markdown ul {
            padding-left: 20px;
            list-style-type: disc;
        }

        #markdown ul li {
            margin: 8px 0;
        }

        #markdown ul ul {
            list-style-type: circle;
        }

        #markdown ul ul ul {
            list-style-type: square;
        }

        /* Link
        -------------------- */

        #markdown a {
            color: #0eaeec;
            font-weight: bold;
        }

        /* Image
        -------------------- */

        #markdown img {
            display: block;
            max-width: 100%;
            height: auto;
            margin: 16px auto;
        }
    </style>

    <link rel="stylesheet"
          href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/styles/base16/solarized-light.min.css">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/highlight.min.js"></script>
    <script>hljs.highlightAll();</script>
</head>

<body>
<article id='markdown'>
  <h1 id='生成订单'>生成订单</h1>
<p ></p>
<h2 >请求信息</h2>
<p ></p>
<h3 >请求地址</h3>
<pre><code class="language-json">http://192.168.72.1:8180/order/create</code></pre>

<p ></p>
<h3 >请求方法</h3>
<pre><code class="language-json">POST</code></pre>

<p ></p>
<h3 >请求体类型</h3>
<pre><code class="language-json">applicatin/json</code></pre>

<p ></p>
<h2 >入参</h2>
<h3 >入参示例 (RequestBody)</h3>
<pre><code class="language-json">{
  "orderId": 124,
  "itemId": 108,
  "itemName": "商品名称(下单时的快照)110",
  "currentPrice": 869.8269263000786,
  "quantity": 110,
  "totalPrice": 896.1493606490011,
  "createTime": "2025-04-23T23:04:45.785+0000",
  "deliveryFee": 599.4448557443195,
  "deliveryAddress": "配送地址114",
  "contactPhone": "联系手机号106",
  "remark": "订单备注64"
}</code></pre>

<p ></p>
<h3 >入参字段说明</h3>
<p ></p>
<table>
<tr>
<th ><strong>字段</strong></th>
<th ><strong>类型</strong></th>
<th ><strong>必填</strong></th>
<th ><strong>含义</strong></th>
<th ><strong>其他参考信息</strong></th>
</tr>
<tr>
<td >orderId<br/></td>
<td ><strong>Long</strong><br/></td>
<td >否<br/></td>
<td >订单ID</td>
<td ><br/></td>
</tr>
<tr>
<td >itemId<br/></td>
<td ><strong>Long</strong><br/></td>
<td >否<br/></td>
<td >商品ID</td>
<td ><br/></td>
</tr>
<tr>
<td >itemName<br/></td>
<td ><strong>String</strong><br/></td>
<td >否<br/></td>
<td >商品名称(下单时的快照)</td>
<td ><br/></td>
</tr>
<tr>
<td >currentPrice<br/></td>
<td ><strong>BigDecimal</strong><br/></td>
<td >否<br/></td>
<td >下单时价格</td>
<td ><br/></td>
</tr>
<tr>
<td >quantity<br/></td>
<td ><strong>Integer</strong><br/></td>
<td >否<br/></td>
<td >购买数量</td>
<td ><br/></td>
</tr>
<tr>
<td >totalPrice<br/></td>
<td ><strong>BigDecimal</strong><br/></td>
<td >否<br/></td>
<td >商品总价</td>
<td ><br/></td>
</tr>
<tr>
<td >createTime<br/></td>
<td ><strong>Date</strong><br/></td>
<td >否<br/></td>
<td >创建时间</td>
<td ><br/></td>
</tr>
<tr>
<td >deliveryFee<br/></td>
<td ><strong>BigDecimal</strong><br/></td>
<td >否<br/></td>
<td >配送费</td>
<td ><br/></td>
</tr>
<tr>
<td >deliveryAddress<br/></td>
<td ><strong>String</strong><br/></td>
<td >否<br/></td>
<td >配送地址</td>
<td ><br/></td>
</tr>
<tr>
<td >contactPhone<br/></td>
<td ><strong>String</strong><br/></td>
<td >否<br/></td>
<td >联系手机号</td>
<td ><br/></td>
</tr>
<tr>
<td >remark<br/></td>
<td ><strong>String</strong><br/></td>
<td >否<br/></td>
<td >订单备注</td>
<td ><br/></td>
</tr>
</table>

<p ></p>
<h2 >出参</h2>
<h3 >出参示例</h3>
<pre><code class="language-json">{
  "code": 356,
  "data": 911,
  "message": "唉窃苯芽示稀贯"
}</code></pre>

<p ></p>
<h3 >出参字段说明</h3>
<p ></p>
<table>
<tr>
<th ><strong>字段</strong></th>
<th ><strong>类型</strong><br/></th>
<th ><strong>含义</strong></th>
<th ><strong>其他参考信息</strong></th>
</tr>
<tr>
<td >code<br/></td>
<td ><strong>int</strong><br/></td>
<td ><br/></td>
<td ><br/></td>
</tr>
<tr>
<td >data<br/></td>
<td ><strong>Long</strong><br/></td>
<td ><br/></td>
<td ><br/></td>
</tr>
<tr>
<td >message<br/></td>
<td ><strong>String</strong><br/></td>
<td ><br/></td>
<td ><br/></td>
</tr>
</table>

<p ></p>
<p ></p>
<h1 id='通过用户id获取订单'>通过用户id获取订单</h1>
<p ></p>
<h2 >请求信息</h2>
<p ></p>
<h3 >请求地址</h3>
<pre><code class="language-json">http://192.168.72.1:8180/order/user?id=35</code></pre>

<p ></p>
<h3 >请求方法</h3>
<pre><code class="language-json">GET</code></pre>

<p ></p>
<h2 >入参</h2>
<h3 >入参示例 (Postman Bulk Edit)</h3>
<pre><code class="language-json">id:35
</code></pre>

<p ></p>
<h3 >入参字段说明</h3>
<p ></p>
<table>
<tr>
<th ><strong>字段</strong></th>
<th ><strong>类型</strong></th>
<th ><strong>必填</strong></th>
<th ><strong>含义</strong></th>
<th ><strong>其他参考信息</strong></th>
</tr>
<tr>
<td >id<br/></td>
<td ><strong>Long</strong><br/></td>
<td ><strong>是</strong><br/></td>
<td ><br/></td>
<td ><br/></td>
</tr>
</table>

<p ></p>
<h2 >出参</h2>
<h3 >出参示例</h3>
<pre><code class="language-json">{
  "code": 333,
  "data": {
    "orderNo": "订单编号125",
    "userId": 93,
    "riderId": 739,
    "totalAmount": 827.054265812721,
    "actualAmount": 264.06346703709374,
    "deliveryFee": 276.11193351001623,
    "deliveryAddress": "配送地址105",
    "contactPhone": "联系手机号127",
    "remark": "订单备注68",
    "status": 677,
    "payTime": "2025-04-24T19:16:02.568+0000",
    "deliveryTime": "2025-04-24T14:46:36.193+0000",
    "completeTime": "2025-04-24T09:53:47.990+0000"
  },
  "message": "山份移咋乞罐娄"
}</code></pre>

<p ></p>
<h3 >出参字段说明</h3>
<p ></p>
<table>
<tr>
<th ><strong>字段</strong></th>
<th ><strong>类型</strong><br/></th>
<th ><strong>含义</strong></th>
<th ><strong>其他参考信息</strong></th>
</tr>
<tr>
<td >code<br/></td>
<td ><strong>int</strong><br/></td>
<td ><br/></td>
<td ><br/></td>
</tr>
<tr>
<td >data<br/></td>
<td ><strong>OrderVO</strong><br/></td>
<td ><br/></td>
<td ><br/></td>
</tr>
<tr>
<td >└─ orderNo<br/></td>
<td ><strong>String</strong><br/></td>
<td >订单编号</td>
<td ><br/></td>
</tr>
<tr>
<td >└─ userId<br/></td>
<td ><strong>Long</strong><br/></td>
<td >用户ID(关联user表)</td>
<td ><br/></td>
</tr>
<tr>
<td >└─ riderId<br/></td>
<td ><strong>Long</strong><br/></td>
<td >骑手ID(关联user表)</td>
<td ><br/></td>
</tr>
<tr>
<td >└─ totalAmount<br/></td>
<td ><strong>BigDecimal</strong><br/></td>
<td >订单总金额</td>
<td ><br/></td>
</tr>
<tr>
<td >└─ actualAmount<br/></td>
<td ><strong>BigDecimal</strong><br/></td>
<td >实际支付金额</td>
<td ><br/></td>
</tr>
<tr>
<td >└─ deliveryFee<br/></td>
<td ><strong>BigDecimal</strong><br/></td>
<td >配送费</td>
<td ><br/></td>
</tr>
<tr>
<td >└─ deliveryAddress<br/></td>
<td ><strong>String</strong><br/></td>
<td >配送地址</td>
<td ><br/></td>
</tr>
<tr>
<td >└─ contactPhone<br/></td>
<td ><strong>String</strong><br/></td>
<td >联系手机号</td>
<td ><br/></td>
</tr>
<tr>
<td >└─ remark<br/></td>
<td ><strong>String</strong><br/></td>
<td >订单备注</td>
<td ><br/></td>
</tr>
<tr>
<td >└─ status<br/></td>
<td ><strong>Integer</strong><br/></td>
<td >订单状态(0待支付 1已支付待接单 2已接单制作中 3制作完成待取货 4配送中 5已完成 6已取消 7已退款)</td>
<td ><br/></td>
</tr>
<tr>
<td >└─ payTime<br/></td>
<td ><strong>Date</strong><br/></td>
<td >支付时间</td>
<td ><br/></td>
</tr>
<tr>
<td >└─ deliveryTime<br/></td>
<td ><strong>Date</strong><br/></td>
<td >预计送达时间</td>
<td ><br/></td>
</tr>
<tr>
<td >└─ completeTime<br/></td>
<td ><strong>Date</strong><br/></td>
<td >完成时间</td>
<td ><br/></td>
</tr>
<tr>
<td >message<br/></td>
<td ><strong>String</strong><br/></td>
<td ><br/></td>
<td ><br/></td>
</tr>
</table>

<p ></p>
<p ></p>
<h1 id='将订单标记为已完成'>将订单标记为已完成</h1>
<p ></p>
<h2 >请求信息</h2>
<p ></p>
<h3 >请求地址</h3>
<pre><code class="language-json">http://192.168.72.1:8180/order/complete?id=148</code></pre>

<p ></p>
<h3 >请求方法</h3>
<pre><code class="language-json">POST</code></pre>

<p ></p>
<h3 >请求体类型</h3>
<pre><code class="language-json">applicatin/json</code></pre>

<p ></p>
<h2 >入参</h2>
<h3 >入参示例 (RequestBody)</h3>
<pre><code class="language-json">{
  "id": 433
}</code></pre>

<p ></p>
<h3 >入参字段说明</h3>
<p ></p>
<table>
<tr>
<th ><strong>字段</strong></th>
<th ><strong>类型</strong></th>
<th ><strong>必填</strong></th>
<th ><strong>含义</strong></th>
<th ><strong>其他参考信息</strong></th>
</tr>
<tr>
<td >id<br/></td>
<td ><strong>Long</strong><br/></td>
<td >否<br/></td>
<td ><br/></td>
<td ><br/></td>
</tr>
</table>

<p ></p>
<h2 >出参</h2>
<h3 >出参示例</h3>
<pre><code class="language-json">{
  "code": 59,
  "data": false,
  "message": "邦揣够欺硫姑狠捍歉呵陪啪"
}</code></pre>

<p ></p>
<h3 >出参字段说明</h3>
<p ></p>
<table>
<tr>
<th ><strong>字段</strong></th>
<th ><strong>类型</strong><br/></th>
<th ><strong>含义</strong></th>
<th ><strong>其他参考信息</strong></th>
</tr>
<tr>
<td >code<br/></td>
<td ><strong>int</strong><br/></td>
<td ><br/></td>
<td ><br/></td>
</tr>
<tr>
<td >data<br/></td>
<td ><strong>Boolean</strong><br/></td>
<td ><br/></td>
<td ><br/></td>
</tr>
<tr>
<td >message<br/></td>
<td ><strong>String</strong><br/></td>
<td ><br/></td>
<td ><br/></td>
</tr>
</table>

<p ></p>
<p ></p>

</article>
</body>
</html>